import com.sun.org.apache.bcel.internal.generic.NEW;

import java.util.ArrayList;
import java.util.Scanner;

class Rectangle{
    private int width;
    private int length;

    public Rectangle(int width, int length) {
        this.width = width;
        this.length = length;
    }
    public int getPerimeter(){
        return (width+length)*2;
    }
    public int getArea(){
        return width*length;
    }

    @Override
    public String toString() {
        return "Rectangle [" +
                "width=" + width +
                ", length=" + length +
                ']';
    }
}
class Circle{
    private int radius;

    public Circle(int radius) {
        this.radius = radius;
    }
    public int getPerimeter(){
        return (int)Math.floor(2*Math.PI*radius);
    }
    public int getArea(){
        return (int)Math.floor(Math.PI*radius*radius);
    }

    @Override
    public String toString() {
        return "Circle [" +
                "radius=" + radius +
                ']';
    }
}
public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        ArrayList<Rectangle> a1=new ArrayList<Rectangle>();
        ArrayList<Circle> a2=new ArrayList();
        a1.add(new Rectangle(sc.nextInt(), sc.nextInt()));
        a1.add(new Rectangle(sc.nextInt(), sc.nextInt()));
        a2.add(new Circle(sc.nextInt()));
        a2.add(new Circle(sc.nextInt()));
        int l=0;
        int s=0;
        for (Rectangle rectangle: a1){
            l+=rectangle.getPerimeter();
            s+=rectangle.getArea();
        }
        for (Circle circle:a2){
            l+=circle.getPerimeter();
            s+=circle.getArea();
        }
        System.out.println(l);
        System.out.println(s);
        System.out.println(a1);
        System.out.println(a2);
    }
}
